package com.snuproject.lgt.activity;

import com.lge.real3d.Real3D;
import com.lge.real3d.Real3DInfo;
import com.snuproject.lgt.imgtrans.GL3DImageRenderer;

import android.app.Activity;
import android.opengl.GLSurfaceView;
import android.os.Bundle;

public class Activity3DImage extends Activity{

    private GLSurfaceView glSurfaceView;
    private GL3DImageRenderer renderer;
    private Real3D mReal3D;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
        glSurfaceView = new GLSurfaceView(this);
        mReal3D = new Real3D(glSurfaceView.getHolder());
        mReal3D.setReal3DInfo(new Real3DInfo(true, Real3D.REAL3D_TYPE_SS, Real3D.REAL3D_ORDER_LR));
        renderer = new GL3DImageRenderer(this);
        glSurfaceView.setRenderer(renderer);
        glSurfaceView.setRenderMode(GLSurfaceView.RENDERMODE_CONTINUOUSLY);
        setContentView(glSurfaceView);
	}

}
